// pages/plugin/home/home.js
var app = getApp();
const TOOL = require('../../../utils/util') //工具JS
Component({
  options: {
    addGlobalClass: true,
  },
  /**
   * 组件的初始数据
   */

  data: {
    backgroundColor: app.globalData.currentBgColor, //皮肤颜色
    StatusBar: 20, //遵循cu-custom的设置，与系统无关
    CustomBar: 74, //遵循cu-custom的设置，与系统无关
    SystemHeight: app.globalData.SystemHeight, //系统可用高度
    SystemWidth: app.globalData.SystemWidth, //系统可用宽度
    ScreenHeight: app.globalData.ScreenHeight, //系统宽度
    StatusBarHeight: app.globalData.StatusBarHeight, //状态宽度
    TabBarHeight: 50,
    list: [{
        title: '索引列表',
        img: 'https://image.weilanwl.com/color2.0/plugin/sylb2244.jpg',
        url: '/common/plugin/indexes/indexes'
      },
      {
        title: '微动画',
        img: 'https://image.weilanwl.com/color2.0/plugin/wdh2236.jpg',
        url: '/common/plugin/animation/animation'
      },
      {
        title: '垂直导航',
        img: 'https://image.weilanwl.com/color2.0/plugin/qpczdh2307.jpg',
        url: '/common/plugin/verticalnav/verticalnav'
      },
      {
        title: 'OCR身份证识别',
        img: 'https://image.weilanwl.com/color2.0/plugin/sylb2244.jpg',
        url: '/pages/plugin/identify/idCard/idCard'
      },
      {
        title: 'OCR驾驶证识别【期待中】',
        img: 'https://image.weilanwl.com/color2.0/plugin/wdh2236.jpg',
        url: ''
      },
      {
        title: 'OCR银行卡识别【期待中】',
        img: 'https://image.weilanwl.com/color2.0/plugin/qpczdh2307.jpg',
        url: ''
      },
      {
        title: '同声传译【期待中】',
        img: 'https://image.weilanwl.com/color2.0/plugin/sylb2244.jpg',
        url: ''
      },
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    toChild(e) {
      wx.navigateTo({
        url: e.currentTarget.dataset.url
      })
    },
  }
})